//<![CDATA[

//Character count script
function countit(what){
formcontent=what.form.charcount.value
what.form.displaycount.value=formcontent.length
}
// end hiding contents from old browsers  -->
//]]>

//Free Online Word Count Script By TecheHow.Com
function Count(){
var Text = document.Words.Area.value;
Text = Text.replace(/(^\n*)|(\n*$)/," ");
Text = Text.replace(/[\n]{2,}/gi," ");
Text = Text.replace(/[^A-Za-z0-9 ]/g,"");
Text = Text.replace(/[ ]{2,}/gi," ");
Text = Text.replace(/(^\s*)|(\s*$)/gi,"");
document.Words.Area.value=Text;
Lenght=Text.split(' ').length;
Ch=Text.length;
if(Ch=="0")
{
Lenght="0";
}
document.Words.Result.value=Lenght;
}